function [ output_args ] = renamer( input_args )
%RENAMER used to rename files inside a folder if they are badly named.
%   I used it to flip badly named VPN names. Can flip specific characters
%   around like if the ball position and task are backwards. to be modified
%   to needed uses. 
%   Detailed explanation goes here 
%   CODING EXPERIENCE NEEDED TO USE AND MODIFY THIS.
    folder = 'data/subject7/';
    
    %get list of files
    files = dir(fullfile('', [folder, '*.csv'])); 

   
    %iterate through files
    for j=1:length(files)
        name = files(j).name;
        new_name = name;
        
        
        %change the name in soem way.
        if name(7) == 'E'
            1        
        elseif name(3) == 'T'
            new_name(7) = 'E';
            name
            new_name
            
            %rename the file
            movefile([folder name], [folder new_name]);
        end
        
    end
    
end
